import { Field, Int, ObjectType } from '@nestjs/graphql';
import { Problem } from 'src/problem/problem.entity';

@ObjectType('Category')
export class Category {
  @Field(() => Int)
  _id: number;

  @Field()
  name: string;

  @Field(() => [Problem])
  problems: Problem[];
}
